<template>
  <div>
    <select name="city" :value="city" @change="changeId">
      <option value="101">北京</option>
      <option value="102">上海</option>
      <option value="103">深圳</option>
      <option value="104">广州</option>
      <option value="105">郑州</option>
    </select>
  </div>
</template>

<script>
export default {
  props: {
    city: String
  },
  methods: {
    changeId(e) {
      this.$emit("changeId", e.target.value);
    }
  }
};
</script>

<style>
</style>